package com.my.test.spring.ctrl;

import com.my.test.spring.service.UserServiceImpl;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by Administrator on 2017-4-19.
 */
@Controller
public class HomeCtrl {

	static int count = 0;
    @Autowired
    private UserServiceImpl userServiceImpl;

    @RequestMapping("test")
    public String test(HttpServletRequest request){
    	count++;
    	HttpSession session = request.getSession(true);
    	System.out.println("thread="+Thread.currentThread().getName()+",sessionId="+session.getId());
//        userServiceImpl.getString("hzb");
        return "";
    }
}
